
/**
 * Handle record selected.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9F869C2E-0E6C-4F0A-BBA0-A9E313594318"}
 */
function onRecordSelection(event) {
	globals.gDisponibilidad = disponibilidad_id
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"CA7B48CC-21E8-4308-A311-FB4DC19DCFB8"}
 */
function nuevo(event) {
	var $win = application.createWindow('ALTA_DISPONIBILIDAD',JSWindow.MODAL_DIALOG)
	$win.title = 'Nueva Disponibilidad'
	forms.disponibilidad_dtl.controller.show($win)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"63FBE58F-1E0A-4535-95AE-1337E97390B4"}
 */
function masiva(event) {
	var $win = application.createWindow('DISPONIBILIDAD_MASIVA',JSWindow.MODAL_DIALOG)
	$win.title = 'Nueva Disponibilidad'
	forms.disponibilidad_masiva.elements.tab_dtl.removeAllTabs()
	forms.disponibilidad_masiva.onLoad()
	forms.disponibilidad_masiva.controller.show($win)
}
